package com.ruoyi.find.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.find.mapper.FurnitureRentalMapper;
import com.ruoyi.find.domain.FurnitureRental;
import com.ruoyi.find.service.IFurnitureRentalService;

/**
 * 家具租赁综合Service业务层处理
 * 
 * @author yang
 * @date 2025-10-08
 */
@Service
public class FurnitureRentalServiceImpl implements IFurnitureRentalService 
{
    @Autowired
    private FurnitureRentalMapper furnitureRentalMapper;

    /**
     * 查询家具租赁综合
     * 
     * @param furnitureId 家具租赁综合主键
     * @return 家具租赁综合
     */
    @Override
    public FurnitureRental selectFurnitureRentalByFurnitureId(Long furnitureId)
    {
        return furnitureRentalMapper.selectFurnitureRentalByFurnitureId(furnitureId);
    }

    /**
     * 查询家具租赁综合列表
     * 
     * @param furnitureRental 家具租赁综合
     * @return 家具租赁综合
     */
    @Override
    public List<FurnitureRental> selectFurnitureRentalList(FurnitureRental furnitureRental)
    {
        return furnitureRentalMapper.selectFurnitureRentalList(furnitureRental);
    }

    /**
     * 新增家具租赁综合
     * 
     * @param furnitureRental 家具租赁综合
     * @return 结果
     */
    @Override
    public int insertFurnitureRental(FurnitureRental furnitureRental)
    {
        return furnitureRentalMapper.insertFurnitureRental(furnitureRental);
    }

    /**
     * 修改家具租赁综合
     * 
     * @param furnitureRental 家具租赁综合
     * @return 结果
     */
    @Override
    public int updateFurnitureRental(FurnitureRental furnitureRental)
    {
        return furnitureRentalMapper.updateFurnitureRental(furnitureRental);
    }

    /**
     * 批量删除家具租赁综合
     * 
     * @param furnitureIds 需要删除的家具租赁综合主键
     * @return 结果
     */
    @Override
    public int deleteFurnitureRentalByFurnitureIds(Long[] furnitureIds)
    {
        return furnitureRentalMapper.deleteFurnitureRentalByFurnitureIds(furnitureIds);
    }

    /**
     * 删除家具租赁综合信息
     * 
     * @param furnitureId 家具租赁综合主键
     * @return 结果
     */
    @Override
    public int deleteFurnitureRentalByFurnitureId(Long furnitureId)
    {
        return furnitureRentalMapper.deleteFurnitureRentalByFurnitureId(furnitureId);
    }
}
